#ifndef __OSAL_SWTMR_H
#define __OSAL_SWTMR_H

#ifdef __cplusplus
 extern "C" {
#endif
#include "System.h"

#if(RTOS_TYPE == RTOS_AZURERTOS)

#include "tx_api.h"

typedef  TX_TIMER	OSAL_TimerTCB;
	
#elif(RTOS_TYPE == RTOS_FREERTOS)
	
#else
typedef  UINT8   	OSAL_TimerTCB;
#endif

typedef struct {
    CHAR  *name;
    VOID (*function)(ULONG id);
    ULONG param;
    ULONG initTicks;
    ULONG period;
    UINT activate;
}SwTmrAttr_T;


UINT8 OSAL_SwTmrCreate(OSAL_TimerTCB *_timerId,SwTmrAttr_T *_attr);


	
#ifdef __cplusplus
}
#endif
#endif


